package interfaceCustomer;
import javax.swing.JFrame;


public class UserGui extends JFrame 
{		
	private static final long serialVersionUID = 1L;
	public static void main(String args[])
	{ 
		new UserGui();
	}
	/*
	public void go(){
				
		this.getContentPane().setLayout(null);
		
		
	    cosButton.setMnemonic(KeyEvent.VK_B);
	    cosButton.setActionCommand("Costumer");
	    cosButton.setSelected(true);

	    kioskButton.setMnemonic(KeyEvent.VK_C);
	    kioskButton.setActionCommand("kiosk");
	    
	    workerButton.setMnemonic(KeyEvent.VK_C);
	    workerButton.setActionCommand("Worker");
	    
	   
	    
	    cosButton.setBounds(146, 163, 76, 25);	
	    kioskButton.setBounds(249, 163, 68, 25);
	    workerButton.setBounds(334, 163, 68, 25);
	    
	     butStart.setBounds(241, 227, 100, 25);
	     
	    this.getContentPane().add(cosButton);
	    this.getContentPane().add(kioskButton);
	    this.getContentPane().add(workerButton);
	    this.getContentPane().add(butStart);


	    
	    ButtonGroup group = new ButtonGroup();
	    group.add(cosButton);
	    group.add(kioskButton);
	    group.add(workerButton);
	    
	    cosButton.addActionListener(this);
	    kioskButton.addActionListener(this);
	    workerButton.addActionListener(this);
	    butStart.addActionListener(this);
	    
	}
	*/
	public UserGui(){
		
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setLocation(200, 100);
		setTitle("Vertical Car Park");
		//Toolkit tk = Toolkit.getDefaultToolkit();  
		//int xSize = ((int) tk.getScreenSize().getWidth());  
		//int ySize = ((int) tk.getScreenSize().getHeight());
		
		setSize(900, 600);
		setVisible(true);
		//go();
		UserPanel UP = new UserPanel();
		UP.setVisible(true);
		this.getContentPane().add(UP);
	}

/*
	@Override
	public void actionPerformed(ActionEvent e){
		
		if(e.getSource() == butStart)
		{
			//Container content = ug.getContentPane();
			
			if(cosButton.isSelected())
			{
	    		//new Interface.LoginGui();
	    		LoginPanel lgpanel=new LoginPanel();
				//testJPanel lgpanel =new testJPanel();
	    		//this.setVisible(false);
	    		content.removeAll();
	    		lgpanel.setVisible(true);
	    		getContentPane().add(lgpanel);
	    		content.validate();
	            content.repaint();
			}
			if(kioskButton.isSelected())
			{
	    		new Interface.KioskGui();
	    		this.setVisible(false);
			}
			if(workerButton.isSelected())
			{
				new Interface.WorkerGui();
	    		this.setVisible(false);
			}
		}
	    }
*/		
	}
